package src.数据结构.顺序表;

public class SequenceTestDemo {
    public static void main(String[] args) {
        SequenceList<String> sqList = new SequenceList();
        sqList.add("李白");
        sqList.add("杜甫");
        sqList.add("白居易");
        sqList.add("李志成");
        sqList.size();
        /*System.out.println("插入前表大小："+sqList.size());
        System.out.println("---------------------------");
        sqList.insert(0,"苏轼");
        System.out.println("插入后表大小："+sqList.size());
        System.out.println("---------------------------");
        sqList.show();
        System.out.println("\n---------------------------");
        System.out.println("弹出元素值："+sqList.pop());
        System.out.println("弹出元素后表大小："+sqList.size());
        sqList.show();
        System.out.println("弹出元素值："+sqList.pop(1));
        System.out.println("弹出元素后表大小："+sqList.size());
        sqList.show();
        System.out.println("\n---------------------------");
        System.out.println("元素李白的索引值："+sqList.indexOf("李白"));
        sqList.show();
        System.out.println("\n----------------------");
        sqList.clear();
        System.out.println(sqList.size());*/
        sqList.pop();
        sqList.size();
    }
}
